﻿package com.toncen.samepms.system.domain;

import com.toncen.samepms.common.AbstractDomain;
import com.toncen.samepms.common.IPropertyUniqueble;
import com.toncen.samepms.common.Unique;

/**
 * 描述：编码明细表SYSTEM_CODE_ITEM的domain文件
 * 
 * @author tch
 */
public class CodeItem extends AbstractDomain implements IPropertyUniqueble{
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1331288513244L;

	/**
	 * 编码
	 */
	@Unique(column="CODE_ID",title="编码",complexField=true)
	private Code code;

	/**
	 * 编码值
	 */
	@Unique(column="VALUE",title="编码值")
	private String value;

	/**
	 * 编码名称
	 */
	@Unique(column="NAME",title="编码名称")
	private String name;

	/**
	 * 顺序
	 */
	private int sequence;

	/**
	 * 扩展1
	 */
	private String extend1;

	/**
	 * 扩展2
	 */
	private String extend2;

	public CodeItem() {
		super();
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @param value
	 *            the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the sequence
	 */
	public int getSequence() {
		return sequence;
	}

	/**
	 * @param sequence
	 *            the sequence to set
	 */
	public void setSequence(int sequence) {
		this.sequence = sequence;
	}

	/**
	 * @return the code
	 */
	public Code getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(Code code) {
		this.code = code;
	}

	/**
	 * @return the extend1
	 */
	public String getExtend1() {
		return extend1;
	}

	/**
	 * @param extend1
	 *            the extend1 to set
	 */
	public void setExtend1(String extend1) {
		this.extend1 = extend1;
	}

	/**
	 * @return the extend2
	 */
	public String getExtend2() {
		return extend2;
	}

	/**
	 * @param extend2
	 *            the extend2 to set
	 */
	public void setExtend2(String extend2) {
		this.extend2 = extend2;
	}

	public String getPrimaryName() {
		// TODO Auto-generated method stub
		return "ID";
	}

	public String getTableName() {
		// TODO Auto-generated method stub
		return "SYSTEM_CODE_ITEM";
	}

}
